$(function() {

    Morris.Line({
        element: 'morris-area-chart',
        data: [{
            date: '2021-4-1',
            temperature: 36.4,
        }, {
            date: '2021-4-2',
            temperature: 37.4,
        },{
            date: '2021-4-3',
            temperature: 35.4,
        },{
            date: '2021-4-4',
            temperature: 39.4,
        },{
            date: '2021-4-5',
            temperature: 36.4,
        },{
            date: '2021-4-6',
            temperature: 40.4,
        },],
        xkey: 'date',
        ykeys: ['temperature'],
        labels: ['体温'],
        parseTime: false,
        goals:["37.3"],
        goalLineColors:["red"],
        ymax:"42",
        ymin:"35",
    });

    Morris.Donut({
        element: 'morris-donut-chart',
        data: [{
            label: "已上报",
            value: 20
        }, {
            label: "未上报",
            value: 20
        }],
        resize: true
    });

    Morris.Bar({
        element: 'morris-bar-chart',
        data: [{
            y: '2006',
            a: 100,
            b: 90
        }, {
            y: '2007',
            a: 75,
            b: 65
        }, {
            y: '2008',
            a: 50,
            b: 40
        }, {
            y: '2009',
            a: 75,
            b: 65
        }, {
            y: '2010',
            a: 50,
            b: 40
        }, {
            y: '2011',
            a: 75,
            b: 65
        }, {
            y: '2012',
            a: 100,
            b: 90
        }],
        xkey: 'y',
        ykeys: ['a', 'b'],
        labels: ['Series A', 'Series B'],
        hideHover: 'auto',
        resize: true
    });
    
});
